package com.treasure.mall.biz.remote.live.dto;


import com.treasure.mall.biz.entity.user.UserPO;
import com.treasure.mall.biz.remote.live.enums.MessageType;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 拍卖成功消息
 */
@Data
@Builder
public class AuctionSuccessMessageDTO {

    /**
     * 拍卖消息
     * MessageType.auction  or MessageType.auctionPlus
     */
    public MessageType messageType;
    /**
     * 直播间ID
     */
    private Long roomId;

    /**
     * 当前出价用户或中拍用户
     */
    private UserPO user;

    /**
     * 当前出价金额或中拍金额
     */
    private BigDecimal money;
    /**
     * 当前拍卖商品ID
     */
    private Long auctionSessionId;
    /**
     * 中拍订单号
     */
    private String orderId;

}
